package com.kgcx.dbutils.core.mapper;

import com.kgcx.dbutils.core.model.ParameterMap;
import com.kgcx.dbutils.core.model.RowMap;

import java.util.List;


public interface BaseMapper<P, E> extends SuperMapper {
    E selectEntity(P primaryKey);

    List<E> selectEntityListPage(ParameterMap params);

    List<RowMap> selectMapEntityListPage(ParameterMap params);

    int insertEntity(E entity);

    void insertEntities(List<E> entityList);

    int updateEntity(E entity);

    int updateEntities(List<E> entityList);

    int deleteEntity(P primaryKey);

    int deleteEntities(ParameterMap params);
}
